package com.moyun.zbmy.zizhou.beans;

import android.support.annotation.NonNull;

import com.ruihang.generalibrary.utils.IDataDate;

import java.io.Serializable;
import java.sql.Date;

/**
 * 回看栏目下的新闻时间列表
 */
public class LookBackNewsDate implements Serializable, IDataDate, Comparable<LookBackNewsDate> {
    private static final long serialVersionUID = -6031910488721586941L;
    private String programmeDate;
    private String programmeListUrl;

    private int total;
    private int index = -1;

    public String getProgrammeDate() {
        return programmeDate;
    }

    public void setProgrammeDate(String programmeDate) {
        this.programmeDate = programmeDate;
    }

    public String getProgrammeListUrl() {
        return programmeListUrl;
    }

    public void setProgrammeListUrl(String programmeListUrl) {
        this.programmeListUrl = programmeListUrl;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public boolean hasGettedAll() {
        return index >= total - 1;
    }

    @Override
    public Date getDataDate() {
        return null;
    }

    @Override
    public void setDataDate(Date date) {

    }

    @NonNull
    @Override
    public String getDatePattern() {
        return  "yyyy-MM-dd";
    }

    @Override
    public String getDateString() {
        return programmeDate;
    }

    @Override
    public int compareTo(@NonNull LookBackNewsDate o) {
        return 0;
    }
}
